import unittest
from selenium import webdriver
from common.base import logger,Util

class MyUnit(unittest.TestCase):
    def setUp(self):
        logger.info('==============启动测试setUp=============')
        self.driver = webdriver.Chrome()
        self.driver.maximize_window()
        self.driver.get(Util.get_conf()['testUrl'])
        self.driver.implicitly_wait(18)

    def tearDown(self):
        logger.info('==============结束测试tearDown=============')
        self.driver.quit()